package com.ruoyi.resume.mapper;

import java.util.List;
import com.ruoyi.resume.domain.CvProjectExperience;
import com.ruoyi.resume.domain.vo.ProjectToTechVo;
import org.apache.ibatis.annotations.Param;

/**
 * 项目经历Mapper接口
 * 
 * @author ruoyi
 * @date 2024-05-31
 */
public interface CvProjectExperienceMapper 
{
    /**
     * 查询项目经历
     * 
     * @param id 项目经历主键
     * @return 项目经历
     */
    public CvProjectExperience selectCvProjectExperienceById(Long id);

    /**
     * 查询项目经历列表
     * 
     * @param cvProjectExperience 项目经历
     * @return 项目经历集合
     */
    public List<CvProjectExperience> selectCvProjectExperienceList(CvProjectExperience cvProjectExperience);

    /**
     * 新增项目经历
     * 
     * @param cvProjectExperience 项目经历
     * @return 结果
     */
    public int insertCvProjectExperience(CvProjectExperience cvProjectExperience);

    /**
     * 修改项目经历
     * 
     * @param cvProjectExperience 项目经历
     * @return 结果
     */
    public int updateCvProjectExperience(CvProjectExperience cvProjectExperience);

    /**
     * 删除项目经历
     * 
     * @param id 项目经历主键
     * @return 结果
     */
    public int deleteCvProjectExperienceById(Long id);

    /**
     * 批量删除项目经历
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCvProjectExperienceByIds(Long[] ids);

    int insertCvProjectExperienceToTech(@Param("id") Long id,@Param("tid") Integer tid);

    ProjectToTechVo selectCvProjectExperienceToTech(@Param("id")Long id,@Param("tid") Integer tid);

    CvProjectExperience selectCvProjectExperience(String projectName);
}
